<?php

class ProviderGoodsItems extends MenuItemProvider {
	
	public function getItems() {
		$_items = array(
			Goods::TYPE_TRAVEL => array('label'=>'旅游路线管理','url'=>array(AdminModule::PROVIDER_ADMIN.'goods/travel')),
			Goods::TYPE_HOTEL => array('label'=>'酒店客房管理','url'=>array(AdminModule::PROVIDER_ADMIN.'goods/hotel')),
			Goods::TYPE_SCENIC => array('label'=>'景区门票管理','url'=>array(AdminModule::PROVIDER_ADMIN.'goods/scenic')),
			Goods::TYPE_NATIVE => array('label'=>'土特产管理','url'=>array(AdminModule::PROVIDER_ADMIN.'goods/native')),
			Goods::TYPE_TICKET => array('label'=>'机票管理','url'=>array(AdminModule::PROVIDER_ADMIN.'goods/ticket')),
			Goods::TYPE_TICKET_TRAIN => array('label'=>'火车票管理','url'=>array(AdminModule::PROVIDER_ADMIN.'goods/trainTicket')),
		);
		$itemId = Yii::app()->adminUser->worker->info->category_id;
		$item = $_items[$itemId];
		return array($item);
	}
}

?>